import tests.*;

import java.io.IOException;

public class RunMain {

    public static void main(String[] args) throws Exception {

        ListPage listPage = new ListPage();
        listPage.listNoLogin();//未登陆访问列表页
        login();//登陆
        listPage.listLogin();

        //发布文章
//        Edit edit = new Edit();
//        edit.edit();

        //我的帖子和个人中心
        PersonData pd = new PersonData();
        pd.data1();
        pd.data2();

        //文章详情页
        Detail detail = new Detail();
        detail.detail();

        //注册页面
        register();
    }

    /**
     * 登陆
     */
    public static void login() {
        Login login = new Login();
        login.loginIsRight();
        login.loginError1();
        login.loginError2();
        login.loginSuc();
    }

    /**
     * 注册
     */
    public static void register() throws IOException {
        Register register = new Register();
        register.registerIsRight();
        register.error1();
        register.error2();
        //register.registerSuc();

    }


}
